package com.zhengqing.design.create.prototype._01;

import lombok.Data;
import lombok.SneakyThrows;

/**
 * <p> 羊 </p>
 *
 * @author zhengqingya
 * @description
 * @date 2022/12/21 14:58
 */
@Data
public class Sheep implements Cloneable {
    private String name;
    private String color;
    public Sheep friend;

    public Sheep(String name, String color) {
        super();
        this.name = name;
        this.color = color;
    }

    /**
     * 克隆实例
     */
    @Override
    @SneakyThrows(Exception.class)
    protected Object clone() {
        return super.clone();
    }

}
